/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech.edu.ixj.interfaces;

import aptech.edu.ixj.entity.Answer;
import aptech.edu.ixj.entity.Question;
import java.util.List;
import org.w3c.dom.Node;

/**
 *
 * @author ChauNTM
 *
 * Cài đặt các phương thức xử lý questions and answers
 */
public interface IQADao {

    public List<Question> getListQuestion(String surveyId);

    public List<Answer> getListAnswer(String quesId);

    public boolean save();

    public boolean removeAnswer(String answerId);

    public boolean removeQuestion(String quesId);

    public void remove(Node nodeParen, Node noderemove);

    public boolean createQuestion(Question question);

    public boolean createAnswer(Answer answer);
}
